import service from '@/utils/request'

const ActiveApi = {
  listActive:function(data){
    return service.get('active/page', {params:data})
  },
  addActive:function(data){
    return service.post('active', data)
  },
  editActive:function(data){
    return service.put('active', data)
  },
  updateActiveState:function(data){
    return service.put('active/updateActiveState', data)
  },
  deleteActive:function(data){
    return service.put('active/delete', data)
  },
  activeList(data){
    return service.get('active/listIdName', {params:data})
  },
  getActive(data){
    return service.get('active', {params:data})
  },
  // setRelation(data){
  //   return service.post('active/setRelation', data)
  // },
  // stackList(data){
  //   return service.get('userStack/listIdName', {params:data})
  // },
  setActiveVillage(data){
    return service.put('activeVillage/setActiveVillage', data)
  },
  getMapData(data){
    return service.get('activeVillage/getMapData', {params:data})
  },
  // setActiveRule(data){
  //   return service.put('activeRule', data)
  // }
}

export default ActiveApi
